package cn.exrick.xboot.modules.ApprovalInfo.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.exrick.xboot.modules.ApprovalInfo.entity.ApprovalInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 审批信息表数据处理层
 * @author njp
 */
public interface ApprovalInfoMapper extends BaseMapper<ApprovalInfo> {

    //public IPage<BacklogOrFullList> (Page page, @Param("backlogOrFullList") BacklogOrFullList backlogOrFullList );

    /**
     * 三权分立查询超级管理员登录的审批数据精确查询
     * @param approvalInfo
     * @return
     */
    public List<ApprovalInfo> selectApprovalInfo(@Param("approvalInfo")ApprovalInfo approvalInfo);

    /**
     * 三权分立查询超级管理员登录的审批数据精确查询(分页)
     * @param approvalInfo
     * @return
     */
    public IPage<ApprovalInfo> selectApprovalInfo(Page page,@Param("approvalInfo") ApprovalInfo approvalInfo);

    /**
     * 查询当前过期时间小于当前时间的各个状态的数据
     * @param approvalInfo
     * @return
     */
    public List<ApprovalInfo> selectApprovalInfoByAgo(ApprovalInfo approvalInfo);


    /**
     * 三权分立查询超级管理员登录的审批数据模糊查询
     * @param approvalInfo
     * @return
     */
    public IPage<ApprovalInfo> approvalInfoFuzzyQuery(Page page, ApprovalInfo approvalInfo);
}